package com.example.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.example.entity.Course;
@Repository
public interface CourseRepository extends CrudRepository<Course, Integer>{
	@Query ("from Course where name=:name")
	public Course getID (@Param("name") String name);
	
}
